﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Data;
using System.Data.OleDb;
using InfoLayer;

namespace ControlLayer
{
    public class LoaiPhongControl
    {
        private LoaiPhongDataAccess LoaiPhongDA = new LoaiPhongDataAccess();

        public DataTable LayBangDanhSachLoaiPhong()
        {
            return LoaiPhongDA.LayBangDanhSachLoaiPhong();
        }

        public void Insert(ref LoaiPhongInfo loaiPhongInfo)
        {
            LoaiPhongDA.Insert(ref loaiPhongInfo);
        }

        public void Update(LoaiPhongInfo loaiPhongInfo)
        {
            LoaiPhongDA.Update(loaiPhongInfo);
        }

        public string TaoMaTuDong(string maGoc, int batDau)
        {
            return LoaiPhongDA.TaoMaTuDong(maGoc, batDau);
        }
    }
}
